using Vin.Extension.Framework.Interface;
using Vin.Extension.Framework.Quartz.Dto.Entities;
using Vin.Extension.Framework.Quartz.Dto.List;

namespace Vin.Extension.Framework.Quartz.ServiceInterface;

public interface ISysJobService : IVinFrameworkBaseServiceAsync<SysJobDto, SysJobListDto>
{
    Task<bool> StartAsync(long id);

    Task<bool> StopAsync(long id);

    /// <summary>
    /// 获取运行中的任务
    /// </summary>
    Task<List<SysJobDto>> RunningListAsync();
}